package com.bc.service.deal.CHBtc;

import java.util.HashMap;

import com.bc.service.BaseResponse;
import com.bc.service.deal.BtcCategory;
import com.bc.service.deal.QJLfutures.QJLfuturesResponse.Ticker;
import com.bc.utils.Constants;

/**
 * 中国BTC
 * @author ywen
 *
 */
public class CHBtcResponse extends BaseResponse implements BtcCategory{
	Ticker ticker;

	@Override
	public HashMap<String, Object> getBtcNews() {
		HashMap<String, Object> mHashMap = new HashMap<String, Object>();
		if (ticker != null) {
			mHashMap.put(Constants.LAST_SALE_PRICE, ticker.last);
			mHashMap.put(Constants.BUY_ONE_PRICE, ticker.buy);
			mHashMap.put(Constants.SELL_ONE_PRICE, ticker.sell);
			mHashMap.put(Constants.SELL_HIGH_PRICE, ticker.high);
			mHashMap.put(Constants.SELL_LOW_PRICE, ticker.last);
			mHashMap.put(Constants.SALE_VOLUME, ticker.vol);
		}
		return mHashMap;
	}

	@Override
	public String getBtcType() {
		return "chbtcTicker";
	}
}
